package xwj.example.demo.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import xwj.example.demo.domain.Supplier;
import com.baomidou.mybatisplus.extension.service.IService;
import xwj.example.demo.exception.ProductAdminException;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author xwj
 * @since 2022-10-30
 */
public interface ISupplierService extends IService<Supplier> {
    Supplier addSupplier(Supplier supplier) throws ProductAdminException;
    Supplier getSupplier(long id);
    void updateSupplier(long id,Supplier supplier) throws ProductAdminException;
    void deleteSupplier(long id) ;
    IPage<Supplier> selectSupplierPage(String name,Integer pageNum,Integer pageSize);
}
